package com.explorati.interview.interview.chapterfifteen;

import java.text.SimpleDateFormat;
import java.util.Date;

public class SDFormatter {

	public static String Formater(Date date) {
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		return sdf.format(date);
	}

	public static void main(String[] args) {
		Date date = new Date();
		System.out.println(Formater(date));
	}
}
